package utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class toolUtil {
    public static boolean isEmpty(String str) {
        return str == null || !str.trim().isEmpty();
    }

    public static Long getTime() {
        return System.currentTimeMillis();
    }

    public static String getDateByTime(Long time) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return sdf.format(new Date(time));
    }

}
